<?php
namespace Modules\ShopApi\Models;
class ShopOrderInfo extends BaseApiModel
{ 
	/**
	 * @name  关联商品
	 */
	 public function product_to()
    {
        return $this->belongsTo('Modules\ShopApi\Models\ShopProduct','product_id','id');
    }
	/**
	 * @name  关联商品规格
	 */
	 public function spec_to()
    {
        return $this->belongsTo('Modules\ShopApi\Models\ShopProductSpec','specs_id','id');
    }
}
